﻿using System;
using System.Collections.Generic;

namespace Disco.Ontology
{
    public class Region : EntityBase
    {
        public string Code { get; set; }

        public long DescriptionId { get; set; }
        public virtual Descriptor Description { get; set; }

        public long? ParentId { get; set; }
        public virtual Region Parent { get; set; }

        public virtual ICollection<Region> Partitions { get; set; }
        public virtual ICollection<Post> Posts { get; set; }
        
        public Region()
        {
            Partitions = new List<Region>();
            Posts = new List<Post>();
        }
    }
}
